Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

71
Views
AWS SDK - Expected params.tags['0'] to be a string

I am trying to create tags based on aws documentation where I need to add tag key with the name of the aws eks cluster.

    const eksCluster = eks
      .createCluster({
        version: "1.21",
        name: `${deployment.name}-eks-cluster`,
        resourcesVpcConfig: {
          securityGroupIds: [eksSgDefault.GroupId],
          subnetIds: [
            subnetprivOne.Subnet.SubnetId,
            subnetprivTwo.Subnet.SubnetId,
          ],
          endpointPublicAccess: true,
          publicAccessCidrs: ["XXXX/X"],
        },
        roleArn: "arn:aws:iam::XXXXXXXX:role/Management-EKS",
        tags: [
          {
            "cluster-name": `${deployment.name}-eks-cluster`,
            [`kubernetes.io/cluster/${deployment.name}-eks-cluster`]: "owned",
          },
        ],
      })
      .promise();

When running this I get Expected params.tags['0'] to be a string. Which means I am somehow failing with this lane:

 [`kubernetes.io/cluster/${deployment.name}-eks-cluster`]: "owned",

Did anyone tried to solve this ?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!